package tech.xs.sys.domain.bo.web.menu;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import tech.xs.common.domain.enums.YesNoEnum;
import tech.xs.sys.domain.entity.SysDict;
import tech.xs.sys.domain.entity.SysWebMenu;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Getter
@Setter
@ToString
public class EditWebMenuBo implements Serializable {

    protected Long id;

    @NotBlank
    private String code;

    private String fatherCode;

    @NotBlank
    private String name;

    @NotBlank
    private String showName;

    @NotNull
    private Integer orderValue;

    private String pageUri;

    private YesNoEnum menuStatus;

    private String remark;

    public void checkParameter() {
        SysWebMenu.checkCode(code, "code");
    }

}
